/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package View;

import java.awt.Image;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

/**
 * Autores:
 * Hugo Hiroshi Yamamura
 * Marina Coimbra Viviani
 * 
 * Classe Scenery
 * Repositório de imagems.
 */

public class StartingMenu extends InFrame{
    
    private static String STRTMENU_DEFAULTIMAGE = "/Sprites/PikaChuuZombieGame.jpg";
    private int finished;
    private Image image;
    
    public StartingMenu(){
    	super(StartingMenu.STRTMENU_DEFAULTIMAGE);
        finished = 0;
        addMouseListener(new MAdapter());        
        
    }
    
   
  /**
 * Classe Privada MAdapter
 * Encontra eventos de mouse.
 */  
    private class MAdapter extends MouseAdapter{
        
        @Override
        public void mouseClicked(MouseEvent e){
            
            //System.out.println("Pegando Mouse =)");
            if(e.getX() < 280 && e.getY() > 360){
               // System.out.print("Start Game");
                setFinished(1);//finished = 1; /* Game Start*/
            }
            if(e.getX() > 426 && e.getY() > 360)
                setFinished(2);//finished = 2; /*Credits*/
            
        }
       }
    
}
